﻿<%@ Page Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="TicketManagement.Staff.Index" %>

<%@ Register Src="../Template/uHeader.ascx" TagName="uHeader" TagPrefix="uc3" %>
<%@ Register Src="../Template/uStaffMenu.ascx" TagName="uStaffMenu" TagPrefix="uc4" %>
<%@ Register Src="../Template/uStaffSidebar.ascx" TagName="uStaffSidebar" TagPrefix="uc5" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .home 
        {
            background-color: #FF6600 !important;
            color: #FFF !important;
        }
    </style>
    <script type="text/javascript" src="../Assets/Scripts/Staffs.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="wrapper">
                <div class="clear10">
                </div>
                <uc3:uHeader ID="uHeader1" runat="server" />
                <div class="clear10">
                </div>
                <uc4:uStaffMenu ID="uStaffMenu1" runat="server" />
                <div class="clear10">
                </div>
                <div class="body">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr valign="top">
                                <td>
                                    <table width="100%" class="box-vang5" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr class="light">
                                                <td class="text-top">
                                                    .:. MY SUPPORT :: Dand sách nhân viên
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr class="light">
                                                <td class="t-l">
                                                </td>
                                                <td class="t-c">
                                                </td>
                                                <td class="t-r">
                                                </td>
                                            </tr>
                                            <tr class="light">
                                                <td class="c-l">
                                                </td>
                                                <td class="c-c" valign="top">
                                                    <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                                        <tbody>
                                                            <tr>
                                                                <td class="tdTable">
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                Code
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                Full name
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td class="tdTable">
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                Birth day
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtBirthDay" runat="server" CssClass="datePicker"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                Hire day
                                                                            </td>
                                                                            <td>
                                                                                <asp:TextBox ID="txtHireDay" runat="server" CssClass="datePicker"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td class="tdTable">
                                                                    <table>
                                                                        <tr>
                                                                            <td></td>
                                                                            <td></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td></td>
                                                                            <td>
                                                                                <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="buttonnew" 
                                                                                    onclick="btnSearch_Click" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                    <asp:GridView ID="listStaff" runat="server" CssClass="gridView" ShowHeaderWhenEmpty="True"
                                                        Width="100%" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True"
                                                        OnPageIndexChanging="listStaff_PageIndexChanging" OnSorting="listStaff_Sorting"
                                                        PageSize="4">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="Code" SortExpression="STF_CODE">
                                                                <ItemTemplate>
                                                                    <a href='Edit.aspx?id=<%# Eval("STF_ID") %>'>
                                                                        <%# Eval("STF_CODE") %></a>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="STF_FULL_NAME" HeaderText="Full name" SortExpression="STF_FULL_NAME" />
                                                            <asp:BoundField DataField="STF_GENDER" HeaderText="Gender" SortExpression="STF_GENDER" />
                                                            <asp:BoundField DataField="STF_BIRTHDAY" HeaderText="Birth day" SortExpression="STF_BIRTHDAY" />
                                                            <asp:BoundField DataField="STF_HIRE_DATE" HeaderText="Hire day" SortExpression="STF_HIRE_DATE" />
                                                            <asp:BoundField DataField="STF_PHONE" HeaderText="Phone" SortExpression="STF_PHONE" />
                                                            <asp:BoundField DataField="USR_EMAIL" HeaderText="Email" SortExpression="USR_EMAIL" />
                                                            <asp:TemplateField>
                                                                <HeaderTemplate>
                                                                    <asp:CheckBox ID="cbxCheckAll" class="cbxCheckAll" runat="server" />
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblStaffId" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem, "STF_ID") %>'
                                                                        runat="server" />
                                                                    <asp:CheckBox ID="cbxDelId" class="cbxDelId" runat="server" />
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="40px" HorizontalAlign="Center" CssClass="center" />
                                                                <ItemStyle Width="40px" HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                    <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                                        <tbody>
                                                            <tr class="light">
                                                                <td>
                                                                    <div align="center">
                                                                        <asp:Button ID="btnAdd" runat="server" Text="New" CssClass="buttonnew" OnClick="btnAdd_Click" />
                                                                        <asp:Button ID="btnDelete" runat="server" Text="Xóa" CssClass="buttonnew" OnClick="btnDelete_Click"
                                                                            OnClientClick="return confirm('Are you sure?')" />
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                   </table>
                                                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="font_10">
                                                        <tbody>
                                                            <tr class="light">
                                                                <td colspan="2">
                                                                    <div class="clear" style="height: 10px">
                                                                    </div>
                                                                    <div class="tl fr">
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                                <td class="c-r">
                                                </td>
                                            </tr>
                                            <tr class="light">
                                                <td class="b-l">
                                                </td>
                                                <td class="b-c">
                                                </td>
                                                <td class="b-r">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td width="10">
                                </td>
                                <td width="180">
                                    <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <img src="../Assets/images/spaces.gif" width="1" height="1">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <uc5:uStaffSidebar ID="uStaffSidebar1" runat="server" />
                                    <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                        <tbody>
                                            <tr class="light">
                                                <td>
                                                    <img src="../Assets/images/spaces.gif" width="1" height="1">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="clear20">
                </div>
                <div class="clear20">
                </div>
                <div class="clear">
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
